package com.yfp.operation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.operation.domain.DeviceCurrentComboPlanRoadDO;
import com.yfp.operation.domain.MachineDamageDetailDO;
import com.yfp.operation.domain.vo.ComboSaleDataVO;

import java.util.Date;
import java.util.List;

/**
 *
 * @description 针对表【machine_damage_detail】的数据库操作Service
 * @createDate 2024-04-25 10:01:12
 */
public interface MachineDamageDetailService extends IService<MachineDamageDetailDO> {

    /**
     * 报损数据提交
     *
     * @param damageDTOS
     * @return
     */
    Boolean damageHandle(List<DeviceCurrentComboPlanRoadDO> damageDTOS);

    Integer getReportNum(String machineId);

    List<MachineDamageDetailDO> lossDate(List<String> machineIds, Date startTime, Date endTime);

    List<ComboSaleDataVO> lossNum(List<ComboSaleDataVO> lossDateList);
}
